package com.lb.service.impel;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lb.entity.DishCategory;
import com.lb.mapper.DishCategoryMapper;
import com.lb.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Categoryserviceimpel extends ServiceImpl<DishCategoryMapper, DishCategory> implements CategoryService {
    @Autowired
    private DishCategoryMapper dishCategoryMapper;
    @Override
    public List<DishCategory> selectByname(String name) {
      List<DishCategory> list=  dishCategoryMapper.selectLikename(name);
      return list;
    }
}
